package com.bjpowernode.service.impl;

import com.bjpowernode.dao.ReviewDao;
import com.bjpowernode.service.ReviewService;
import com.bjpowernode.user.Review;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ReviewServiceImpl implements ReviewService {

    @Resource
    private ReviewDao reviewDao;

    @Override
    public List<Review> findReview(Integer id) {
        return reviewDao.selectReview(id);
    }

    @Override
    public int addReview(Review review) {
        return reviewDao.insertReview(review);
    }
}
